{echo:JS::import("form")}
{echo:JS::import('dialog?skin=tinysimple');}
{echo:JS::import('dialogtools');}
<link type="text/css" rel="stylesheet" href="{url:#css/ucenter.css}" />
<div class="container clearfix">
	{widget:name=sub_navs action=ucsidebar sidebar=$sidebar act=$actionId}
	<div class="content clearfix uc-content">
	
		
		<div class="mt10 tab">
			<ul class="tab-head">
				<li>提现记录<i></i></li>
			</ul>
			<div class="tab-body">
				
				
				<!-- 提现 -->
				<div>
					<table class="simple">
						<tr>
							<th width="120">时间</th><th width="80">申请金额</th><th width="60">手续费</th><th width="80">实提金额</th> <th width="50">姓名</th><th width="140">金融机构</th> <th width="140">金融账号</th> <th width="50">状态</th>
						</tr>
						{query:name=withdraw where=user_id eq $user[id] order=id desc page=1 id=$withdraw}
						<tr class="{if:$key%2==1}odd{else:}even{/if} {if:$item['status']==2}noborder{/if}">
							<td>{$item['time']}</td> <td >{$currency_symbol}{$item['sq_money']}</td>
							<td >{$currency_symbol}{$item['txf']}</td>
							<td >{$currency_symbol}{$item['amount']}</td>
							<td>{$item['name']}</td><td>{$item['type_name']}</td> 
							<td >{$item['account']}</td> 
							<td>{if:$item['status']==0}<span class="red">处理中</span>{elseif:$item['status']==1}<b class="green">提现成功</b>{else:}<span class="gray">失败</span>{/if}</td>
						</tr>
						{if:$item['status']==2}
						<tr>
							<td colspan="8" style="padding-left:20px;"><p><span class="red">处理意见：</span>{$item['re_note']} </p></td>
						</tr>
						{/if}
						{/query}
					</table>
					<div class="page-nav f12">{echo:$withdraw->pagebar()}</div>
				</div>
				
			</div>
		</div>
	</div>
</div>




<script type="text/javascript">
/*
	$("#recharge-btn").on("click",function() {
		art.dialog({id:'recharge-dialog',title:'在线充值',content:document.getElementById('recharge-dialog'),lock:true});
	});
	$("#withdraw-btn").on("click",function() {
		art.dialog({id:'withdraw-dialog',title:'提现申请',content:document.getElementById('withdraw-dialog'),lock:true});
	});
	$("#zh-btn").on("click",function() {
		art.dialog({id:'zh-dialog',title:'币种转换',content:document.getElementById('zh-dialog'),lock:true});
	});
	$("#zz-btn").on("click",function() {
	art.dialog({id:'zz-dialog',title:'转账',content:document.getElementById('zz-dialog'),lock:true});
});
	function close_dialog(e){
		if(!e)art.dialog({id:'recharge-dialog'}).close();
	}
	function submit_withdraw(e){
		if(!e){
			var name = $("#w_name").val();
			var type_name = $("#w_type_name").val();
			var account = $("#w_account").val();
			var amount = $("#w_amount").val();
			var pass2 = $("#pass2").val();
			$.get("{url:/ucenter/withdraw}",{name:name,type_name:type_name,pass2:pass2,account:account,amount:amount},function(data){
				if(data['status']=='success'){
					art.dialog({id:'withdraw-dialog'}).close();
					art.dialog.tips("<p class='"+data['status']+"'>"+data['msg']+"</p>",2);
            		setTimeout("tools_reload()",2000);
					window.location.href = "{url:/ucenter/account/rand/}"+Math.random()+"#tab-3";
				}else{
					alert(data['msg']);
				}
			},'json');
		}
		return false;
	}
	function submit_zh(e){
		if(!e){
			var zh_get = $("#zh_get").val();
			var zh_from = $("#zh_from").val();
			var pass2 = $("#pass2").val();
			var amount = $("#amount").val();
			$.get("{url:/ucenter/zh}",{zh_get:zh_get,zh_from:zh_from,pass2:pass2,amount:amount},function(data){
				if(data['status']=='success'){
					art.dialog({id:'zh-dialog'}).close();
					art.dialog.tips("<p class='"+data['status']+"'>"+data['msg']+"</p>",2);
            		setTimeout("tools_reload()",2000);
					window.location.href = "{url:/ucenter/account/rand/}"+Math.random()+"#tab-2";
				}else{
					alert(data['msg']);
				}
			},'json');
		}
		return false;
	}
	function submit_zz(e){
	if(!e){
		var fields = $("#zz_form").serializeArray();
		$.get("{url:/ucenter/zz}",fields,function(data){
			if(data['status']=='success'){
				art.dialog({id:'zz-dialog'}).close();
				art.dialog.tips("<p class='"+data['status']+"'>"+data['msg']+"</p>",2);
            setTimeout("tools_reload()",2000);
            window.location.href = "{url:/ucenter/account/rand/}"+Math.random()+"#tab-1";
			}else{
				alert(data['msg']);
			}
		},'json');
	}
	return false;
}
	*/
</script>
